import request from "@/utils/request";

export default {
  //添加小节
  saveVideo(video) {
    return request({
      url: `/eduservice/eduvideo/save`,
      method: "post",
      data: video
    });
  },
  //根据编号查询小节
  byidVideo(id) {
    return request({
      url: `/eduservice/eduvideo/byid/${id}`,
      method: "get"
    });
  },
  //修改小节
  updateByVideo(video) {
    return request({
      url: `/eduservice/eduvideo/edit`,
      method: "put",
      data: video
    });
  },
  //删除小节
  delVideoByid(id) {
    return request({
      url: `/eduservice/eduvideo/del/${id}`,
      method: "delete"
    });
  }
};
